package com.zjsd.sqeybusiness.mapper;

import java.util.List;
import com.zjsd.sqeybusiness.domain.Tcdetail;
import org.springframework.stereotype.Repository;

/**
 * 套餐明细Mapper接口
 *
 * @author Zheng
 * @date 2022-05-10
 */
@Repository
public interface TcdetailMapper
{
    /**
     * 查询套餐明细
     *
     * @param detailid 套餐明细ID
     * @return 套餐明细
     */
    public Tcdetail selectTcdetailById(Long detailid);

    /**
     * 查询套餐明细列表
     *
     * @param tcdetail 套餐明细
     * @return 套餐明细集合
     */
    public List<Tcdetail> selectTcdetailList(Tcdetail tcdetail);

    /**
     * 新增套餐明细
     *
     * @param tcdetail 套餐明细
     * @return 结果
     */
    public int insertTcdetail(Tcdetail tcdetail);

    /**
     * 修改套餐明细
     *
     * @param tcdetail 套餐明细
     * @return 结果
     */
    public int updateTcdetail(Tcdetail tcdetail);

    /**
     * 删除套餐明细
     *
     * @param detailid 套餐明细ID
     * @return 结果
     */
    public int deleteTcdetailById(Long detailid);

    /**
     * 批量删除套餐明细
     *
     * @param detailids 需要删除的数据ID
     * @return 结果
     */
    public int deleteTcdetailByIds(Long[] detailids);
}
